package org.lds.hotkey.common.enums;

public enum ErrorEnum implements ErrCodeEnum {

    SYSTEM_ERROR("SYSTEM_ERROR", "系统错误"),

    GET_INET_ADDRESS_FAIL("GET_INET_ADDRESS_FAIL", "获取本机地址失败"),

    ETCD_UNAVAILABLE("ETCD_UNAVAILABLE", "etcd不可用"),

    ;

    private String code;
    private String message;

    ErrorEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String getErrCode() {
        return code;
    }

    @Override
    public String getErrMsg() {
        return message;
    }

}
